package org.examSys.test;

import java.util.List;

import org.examSys.Dao.BookDao;
import org.examSys.Dao.ImpI.BookDaoImpI;
import org.examSys.entity.Book;

public class test {
	public static void main(String[] args) {
		BookDao bookDao=new BookDaoImpI();
//		List<Book> list=bookDao.getAll();
//		for (Book book : list) {
//			System.out.println(book.getGrade().getGradeName());
//		}
		Book book=new Book();
		book.setBookName("J");
//		book.setGrade_id(1);
		List<Book> list=bookDao.select(book);
		for (Book book2 : list) {
			System.out.println(book2.getBookName());
		}
	}
}
